﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WMSSoft.Lib.WinKStart.Model.MenuConfig;

namespace WMSSoft.Lib.WinKStart.Extension
{
    public static class ContextMenuItem_Assign
    {
        public static void Assign(this cWinKStartContextMenuItem Source, cWinKStartContextMenuItem Dest)
        {
            if (Dest != null)
            {
                Source.Caption = Dest.Caption;
                Source.MenuID = Dest.MenuID;
                Source.Name = Dest.Name;
                foreach (string Item in Dest.UsedIn)
                {
                    Source.UsedIn.Add(Item);
                }
            }
        }
    }
}
